package com.luojunchong.dubboprovider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @EnableDubbo：开启 Dubbo 自动配置（扫描 @DubboService 注解）
 * 注意：SpringBootApplication 扫描范围需包含 @DubboService 所在包
 */
@EnableDubbo
@SpringBootApplication(scanBasePackages = "com.luojunchong.dubboprovider")
public class DubboProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(DubboProviderApplication.class, args);
        System.out.println("=====================================");
        System.out.println(" Dubbo 生产者启动成功！已注册到 ZooKeeper ");
        System.out.println("=====================================");
    }
}